package com.neusoft.tyut.factory;

public class SimpleFactory {
    public static Factory produce(String type)
    {
        if(type.equals("colo"))
        {
            return new ColoFacotry();
        }
        else if(type.equals("beer"))
        {
            return new BeerFactory();
        }
        return   null;
    }
}
